<template>
    <div class="container">
        <div class="wrapper">
            <swiper :options="swiperOption">               
                <swiper-slide v-for="(item,index) in bannerImgs" :key="index">    
	                <img class="gallary-img" :src="item">
                </swiper-slide>
                    
            </swiper>   
            <div class="swiper-pagination"  slot="pagination"></div>  
        </div>
    </div>
</template>

<script>
export default {
  props: {
    bannerImgs:Array
  },
  data() {
    return {
      swiperOption: {
        pagination: ".swiper-pagination",
        paginationType: "fraction",
        observeParents: true,
        observer: true
      },
    };
  },
  methods: {
    handleGallaryClick() {
      this.$emit("close")
    }
  },
};
</script>

<style lang="scss" scoped>
.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 99;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: #000;
  h1{
      position: absolute;
      top: 2%;
      right:5%;
      color: #fff;
      z-index: 9999;
  }
  .wrapper {
    height: 0;
    width: 100%;
    padding-bottom: 100%;
    .swiper-pagination{
      width: 100%;
      height: .5rem;
      margin-bottom:1.3rem; 
      color: #fff;
    }
  }
  .gallary-img {
    width: 100%;
    height: 100%;
    
  }
}
</style>